package com.sun.filesigndemo.common.security.Token;


import com.sun.filesigndemo.common.entity.User;

/**
 * 用户和密码（包含验证码）令牌类
 * @author Winkey
 * @version 2017-11-06
 */
public class UserTokenToken extends org.apache.shiro.authc.UsernamePasswordToken {

	private static final long serialVersionUID = 1L;

	User user;
	
	public UserTokenToken() {
		super();
	}

	public UserTokenToken(User user, String host) {
		super(user.getPhone(), user.getPhone(), false, host);
		this.user= user;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
}